import {
	request
} from '@/util/api.js'

// 投票活动消息
export const voteParticipate = (data) => {
	return request({
		url: 'api/vote/participate',
		method: 'get',
		data
	})
}
// 参评回显
export const voteUser = (data) => {
	return request({
		url: 'api/vote/user',
		method: 'get',
		data
	})
}

// 活动奖项
export const votePrizeList = (data) => {
	return request({
		url: 'api/vote/prize_list',
		method: 'get',
		data
	})
}

// 参加评选
export const voteSelection = (data) => {
	return request({
		url: 'api/vote/selection',
		method: 'post',
		data
	})
}

// 投票活动详情
export const voteActivityDetil = (data) => {
	return request({
		url: 'api/vote/activity_detil',
		method: 'get',
		data
	})
}

// 参评企业
export const voteActivityCompany = (data) => {
	return request({
		url: 'api/vote/activity_company',
		method: 'get',
		data
	})
}

// 奖项企业排行
export const votePrizeCompanyList = (data) => {
	return request({
		url: 'api/vote/prize_company_list',
		method: 'get',
		data
	})
}

// 企业投票详情
export const voteCompanyDetails = (data) => {
	return request({
		url: 'api/vote/company_details',
		method: 'get',
		data
	})
}

// 投票
export const voteActivity = (data) => {
	return request({
		url: 'api/vote/activity',
		method: 'post',
		data
	})
}

// 搜索
export const voteCheckCompany = (data) => {
	return request({
		url: 'api/vote/check_company',
		method: 'get',
		data
	})
}
